package com.yadang.java8.service.impl;

import com.yadang.java8.entity.Employee;
import com.yadang.java8.service.MyPredicate;

/**
 * @author: 亚当
 * @date: 2023年01月08日 17:11
 * @package: com.yadang.java8.service.impl
 * @Description: TODO
 */
public class FilterEmployeeByAge implements MyPredicate<Employee> {
    @Override
    public boolean test(Employee employee) {
        return employee.getAge()>=35;
    }

}
